﻿using boda.net.wpf.application.login.Views;
using boda.net.wpf.share.Prism;

using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;

namespace boda.net.wpf.application.main
{
    /// <summary>
    /// 登录模块 - 按需延迟加载
    /// </summary>
    [Module(ModuleName = ModuleNames.ApplicationLoginModule, OnDemand = true)]
    public class ApplicationLoginModule : IModule
    {
        /// <summary>
        /// 后使用
        /// </summary>
        /// <param name="containerProvider"></param>
        public void OnInitialized(IContainerProvider containerProvider)
        {
           
        }

        /// <summary>
        ///  先注册
        /// </summary>
        /// <param name="containerRegistry"></param>
        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<LoginView>();
        }
    }
}
